#!/usr/bin/python3

import json
import requests
import re
import os
import subprocess
import time
import shutil
import random


def _get_value(data,key):
    try:
        return data.get(key,"")
    except Exception as e:
        return ""



# detail_data['stat']
# 'stat': {'aid': 604566039, 'view': 2404453, 'danmaku': 45725, 'reply': 3956, 'favorite': 102974, 'coin': 30571, 'share': 13217, 'now_rank': 0, 'his_rank': 0, 'like': 37529, 'dislike': 0, 'evaluation': '', 'vt': 0}

def _get_file_size(file_path):
    if not os.path.exists(file_path):
        return 0
    file_info = os.stat(file_path)
    return file_info.st_size


    
